package com.bjpowernode.workbench.web.service.impl;

import com.bjpowernode.workbench.web.domain.ClueActivityRelation;
import com.bjpowernode.workbench.web.mapper.ClueActivityRelationMapper;
import com.bjpowernode.workbench.web.service.ClueActivityRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClueActivityRelationServiceImpl implements ClueActivityRelationService {

    @Autowired
    private ClueActivityRelationMapper clueActivityRelationMapper;

    @Override
    public int insertClueActivityRelationByList(List<ClueActivityRelation> clueActivityRelationList) {
        return clueActivityRelationMapper.insertClueActivityRelationByList(clueActivityRelationList);
    }

    @Override
    public int deleteClueActivityByClueActivityRelation(ClueActivityRelation clueActivityRelation) {
        return clueActivityRelationMapper.deleteClueActivityByClueActivityRelation(clueActivityRelation);
    }

    @Override
    public List<ClueActivityRelation> selectClueActivityRelationByClueId(String clueId) {
        return clueActivityRelationMapper.selectClueActivityRelationByClueId(clueId);
    }

    @Override
    public int deleteClueActivityRelationByClueId(String clueId) {
        return clueActivityRelationMapper.deleteClueActivityRelationByClueId(clueId);
    }
}
